package com.taotao.rest.web;

import com.taotao.common.TaotaoResult;
import com.taotao.rest.service.TbItemDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TbItemDetailsController {

    @Autowired
    private TbItemDetailsService tbItemDetailsService;

    @RequestMapping("/item/get_item_detail/{id}")
    public TaotaoResult getItemDetails(@PathVariable Long id) {
        TaotaoResult result = tbItemDetailsService.getItemDetails(id);
        return result;
    }

    @RequestMapping("/item/param/{id}")
    public TaotaoResult getItemParam(@PathVariable Long id) {
        TaotaoResult result = tbItemDetailsService.getItemParam(id);
        return result;
    }

    @RequestMapping("/item/desc/{id}")
    public TaotaoResult getItemDesc(@PathVariable Long id) {
        TaotaoResult result = tbItemDetailsService.getItemDesc(id);
        return result;
    }

}
